<template>
  <div class="componentsbox">
    <div class="titlebox">
      <div class="zuotitle">
        <img src="@/assets/images/miaosha.png" alt="">
        <span class="title">电梯责任险</span>
      </div>
      <div class="youbtnbox">
        
      </div>
    </div>
    <!--  scrollbarhidden -->
    <div class="goodsbox scrollbarhidden" >
      <div class="goodItem"  >
        <div class="goodItem-img">
          <img src="@/assets/images/baoxian1.png" alt="">
        </div>
        <div class="zhonginfo">
           <div class="goodItem_title">
            <div class="zuoming">套餐一</div>
            <div class="qian">
              <div class="price">¥110</div>
              <div class="unit"> 元/部</div>
            </div>
           </div>
           <div class="row2">累计责任限额: 300万</div>
           <div class="row2">每次事故责任限额:150万</div>
        </div>
        <div class="youche" @click="godetail(1)">
          <img src="@/assets/images/immediately.png" alt="">
        </div>
      </div>
      <div class="goodItem"  >
        <div class="goodItem-img">
          <img src="@/assets/images/baoxian2.png" alt="">
        </div>
        <div class="zhonginfo">
           <div class="goodItem_title">
            <div class="zuoming">套餐二</div>
            <div class="qian">
              <div class="price">¥350</div>
              <div class="unit">元/部</div>
            </div>
           </div>
           <div class="row2">累计责任限额: 400万</div>
           <div class="row2">每次事故责任限额:200万</div>
        </div>
        <div class="youche" @click="godetail(2)">
          <img src="@/assets/images/immediately.png" alt="">
        </div>
      </div>
      <div class="goodItem"  >
        <div class="goodItem-img">
          <img src="@/assets/images/baoxian3.png" alt="">
        </div>
        <div class="zhonginfo">
           <div class="goodItem_title">
            <div class="zuoming">套餐三</div>
            <div class="qian">
              <div class="price">¥450</div>
              <div class="unit">元/部</div>
            </div>
           </div>
           <div class="row2">累计责任限额: 600万</div>
           <div class="row2">每次事故责任限额:300万</div>
        </div>
        <div class="youche" @click="godetail(3)">
          <img src="@/assets/images/immediately.png" alt="">
        </div>
      </div>
    </div>
   
  </div>
</template>

<script>

export default {
  name: "miaoshaPage",
  data() {
    return {
      
    };
  },
  
  mounted() {
    
  },
  
  methods: {
    
    godetail(item){
       
      this.$router.push({path:"/goodDetail", query:{type: item} })
    },
    
  },
 
  
};
</script>
<style scoped lang="scss">

.componentsbox{
  max-width: 1200px;
  height: 100%;
  margin: 0 auto 20px;
  .titlebox{
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .zuotitle{
      display: flex;
      align-items: center;
      img{
        width: 38px;
        height: 38px;
      }
      .title{
        margin-left: 16px;
        font-weight: bold;
        font-size: 36px;
        color: #333333;
        text-align: left;
      }

    }
    .youbtnbox{
      display: flex;
      align-items: center;
      justify-content: flex-end;
      .btnitem,.btnitemyou{
        width: 46px;
        height: 46px;
        background: #F5F5F5;
        border-radius: 46px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        img{
          width: 24px;
          height: 24px;
        }
      }
      .btnitemyou{
        margin-left: 8px;
      }
      .btnitem:hover,.btnitemyou:hover{
        opacity: 0.5;
      }
    }
  }
  .goodsbox{
    max-width: 1200px;
    margin: 25px auto 60px auto;
    .goodItem{
      width: 100%;
    
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      background: #FFFFFF;
      border-radius: 8px 8px 8px 8px;
      box-sizing: border-box;
      margin-bottom: 16px;
      box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.1);
      .goodItem-img{
        width: 93px;
        height: 110px;
        border-radius: 8px 8px 8px 8px;
        overflow: hidden;
        margin-right: 20px;
        img{
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      .goodItem-img:hover{
        box-shadow: 0px 0px 16px 2px rgba(0,0,0,0.2);
        img{
          transform: scale(1.1);
        }
      }
      .zhonginfo{
        flex: 1;
        max-width: 400px;
        margin: 0 auto 0 20px;

        .goodItem_title{
          display: flex;
          align-content: center;
          justify-content: space-between;
          margin-bottom: 16px;
          .zuoming{
            font-weight: 600;
            font-size: 16px;
            color: #000000;
            text-align: left;
          }
          .qian{
            display: flex;
            align-items: center;
            .price{
              font-weight: bold;
              font-size: 32px;
              color: #DB4444;
              text-align: left;
            }
            .unit{
              font-size: 16px;
              color: #000000;
              text-align: left;
            }
          }
        }
        .row2{
          font-weight: 400;
          font-size: 14px;
          color: #000000;
          text-align: left;
          margin-bottom: 12px;
        }
      }
      .youche{
          width: 84px;
          height: 84px;
          display: flex;
          align-items: center;
          justify-content: center;
          overflow: hidden;
            cursor: pointer;
          img{
            width: 84px;
            height: 84px;
          }
          img:hover{
            transform: scale(1.1);
          }
        }
    }
  }
  
}
</style>
